kmpkg_from_gitee(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO kumo-pub/hades
    REF "v${VERSION}"
    SHA512 df11bb510ff9d7a153b5fcaa19ccd1b2b5517c14928f88812d4864e24bdb9ac52412930a377d8ed581a22f8dfa2f787321d79c1c17ea7d5d8a0028d25ebaa8b4
    HEAD_REF master
)
set(KMPKG_POLICY_ALLOW_EMPTY_FOLDERS enabled)

kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -DBUILD_UNITTESTS=OFF
)

kmpkg_cmake_install()

kmpkg_copy_pdbs()
kmpkg_cmake_config_fixup(PACKAGE_NAME hades CONFIG_PATH lib/cmake/HadesDB)
kmpkg_fixup_pkgconfig()

kmpkg_copy_tools(TOOL_NAMES hadesdb AUTO_CLEAN)


file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
